#ifndef TYPES_H_
#define TYPES_H_

#define __32__

typedef unsigned long dword;
typedef unsigned short word;
typedef unsigned char byte;
typedef int bool;

#ifdef __64__
typedef unsigned long long size_t;
#endif

#ifdef __32__
typedef unsigned long size_t;
#endif

#define DIV_UP(num, den) (((num) + ((den)-1)) / (den))
#define DIV_DOWN(num, den) ((num) / (den))

#define ALIGN_UP(val, align) (((val) + ((align)-1)) & ~((align)-1))
#define ALIGN_DOWN(val, align) ((val) & ~((align)-1))

#define TRUE 1
#define FALSE 0
#define NULL 0

#endif /*TYPES_H_*/
